// 去除空值
export const delEmpty = (e: any) => {
  for (const key in e) {
    if (Object.hasOwnProperty.call(e, key)) {
      const ele = e[key];
      if (ele === "") {
        delete e[key];
      } else {
        if (Object.prototype.toString.call(ele) === "[object Object]") {
          if (JSON.stringify(ele) == "{}") {
            delete e[key];
          }
        }
      }
    }
  }
  return e;
};
